#pragma once

#include"Hash.h"

namespace MyHash
{
	template<class K, class V, class Hash = HashFunc<K>>
	class Unodered_map
	{
		struct MapKeyOfT
		{
			const K& operator()(const pair<K, V>& kv)
			{
				return kv.first;
			}
		}
	public:
		bool insert(const pair<K,V>& key)
		{
			return _mp.Insert(key);
		}
	private:
		Hash_bucket::HashTable<K, pair<K,V>, MapKeyOfT, Hash> _mp;
	};
}